﻿@model IEnumerable<Models.CMS_Category>

<link href="~/Content/bootstrap.css" rel="stylesheet" />
<div style="padding-left:40%">
    @using (Html.BeginForm("Update_Category", "Category", FormMethod.Post))
    {

    <table>
        @foreach (var item in Model)
        {
            <tr>
                <td>编号</td>
                <td>  <input type="text" class="form-control" value="@item.cid" name="cid" /></td>
            </tr>
            <tr>
                <td>栏目名称</td>
                <td>  <input type="text" class="form-control" value="@item.ctitle" name="ctitle" /></td>
            </tr>
            <tr>
                <td>栏目英文名</td>
                <td>  <input type="text" class="form-control" value="@item.cname" name="cname" /></td>
            </tr>
            <tr>
                <td>显示在导航</td>
                <td>
                    <select id="@item.nav" name="nav" class="form-control" >
                        <option value="False">错误的</option>
                        <option value="True">真的</option>
                    </select>
                </td>
             
            </tr>
            <tr>
                <td>导航上的顺</td>
                <td>  <input type="text" class="form-control" value="@item.navorder" name="navorder" /></td>
            </tr>
            <tr>
                <td>是否被搜索</td>
             <td>
                <select id="@item.search" name="search"class="form-control">
                    <option value="False">错误的</option>
                    <option value="True">真的</option>
                </select>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" id="btn" value="修改" />
                </td>
            </tr>
        }
    </table>
    }
    </div>
    